vcVolumeSensor

vcVolumeSensor detects when components' bounding boxes intersect with a defined box-like volume in the 3D world. The detection volume is a axis-aligned box in world coordinates, which is defined by two Frames. The sensor can optionally only detect components within the DetectionContainer.

See in: Overview

Module: vcBehaviors

Parent: vcBehavior

Children -

Referenced by: -

Properties

Learn how to use properties here. The properties are also inherited from the parent class.

NameTypeAccessDescription
BoolSignalvcBooleanSignalRWGets or sets the Boolean Signal which is set to True when the volume sensor has a valid component intersecting the volume.
ComponentSignalvcComponentSignalRWGets or sets the Component Signal which sends out the intersecting component.
DetectionContainervcContainerRWGets or sets the component container which is used to filter the components that should trigger the sensor.
LowerFramevcFrameFeatureRWGets or sets the vcFeatureFrame which determines the first corner of the volume.
SampleTimeRealRWGets or sets the sampling rate, in seconds.
ShowVolumeBooleanRWGets or sets if the detection area should be visualized.
TestMethodvcVolumeSensorTestMethodRWGets or sets the test method for detecting collisions.
See vcVolumeSensorTestMethod constants for more information.
TestOnlyContainedBooleanRWGets or sets if the sensor should only detect components in the DetectionContainer.
TestParentBooleanRWGets or sets a boolean that determines if the sensor should detect the parent component.
TestSiblingsBooleanRWGets or sets if the sensor should detect components that have this behaviors' component as a parent.
UpdateSceneBooleanRWGets or sets if the detected components should schedule a simulation update when detected.
UpperFramevcFrameFeatureRWGets or sets the vcFeatureFrame which determines the second corner of the volume.
UseSamplingBooleanRWGets or sets if the sensor should update based on the sampling rate or only manually.
VolumeMaterialvcMaterialRWGets or sets a vcMaterial which is used to visualize the detection area.

Methods

Learn how to use methods here. The methods are also inherited from the parent class.

NameReturn TypeParametersDescription
processVolumeNoneNoneManually trigger the volume sensor to check if any valid components are intersecting the volume.